package yaner.hotel.manager.resource.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("t_menu_info")
public class Menu {
    @TableId
    private String id;
    private String parentId;
    private String menuName;
    private String menuType;
    private String menuCode;
    private String menuUrl;
    private String menuIcon;
    private String status;
    private Double sortNo;
    @DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date updateTime;
}
